package com.yex.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.yex.entity.InvestEntity;
import org.apache.ibatis.annotations.Param;

/**
 * 排单钱包
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-01-03 10:49:32
 */
public interface InvestDao extends BaseMapper<InvestEntity> {

    int insertWallet(InvestEntity investEntity);

    int updateFrozen(InvestEntity investEntity);

    int updateUnFrozen(InvestEntity investEntity);

    int updateAdd(InvestEntity investEntity);

    int updateReduce(InvestEntity investEntity);

    int updateReduceFrozen(InvestEntity investEntity);





    InvestEntity selectByUserId(@Param("userId") Integer userId);
}
